# gel/vgel/CMakeLists.txt

SET(vgel_sources
 vgel_kl.cxx              vgel_kl.h
 vgel_kl_params.cxx       vgel_kl_params.h
)
AUX_SOURCE_DIRECTORY(Templates vgel_sources)

IF(BUILD_OXL)
SET(vgel_sources ${vgel_sources}
 vgel_multi_view_data.txx vgel_multi_view_data.h
 vgel_multi_view_data_vertex_sptr.h
)
ENDIF(BUILD_OXL)

ADD_LIBRARY(vgel ${vgel_sources})
INSTALL_TARGETS(/lib vgel)
INSTALL_NOBASE_HEADER_FILES(/include/vxl/contrib/gel/vgel ${vgel_sources})

IF(BUILD_OXL)
 INCLUDE_DIRECTORIES(${OXL_INCLUDE_DIR})
 TARGET_LINK_LIBRARIES(vgel mvl)
ENDIF(BUILD_OXL)

TARGET_LINK_LIBRARIES(vgel vgel_kl vtol vil vil1 vidl1 vidl_vil1 vbl)

IF (BUILD_EXAMPLES)
  SUBDIRS(examples)
ENDIF (BUILD_EXAMPLES)
